/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package onlinebuy;

/**
 *
 * @author Yang Wu
 */
import javax.swing.JFrame;
import java.awt.GridLayout;
import java.awt.event.*;
import javax.swing.JButton;

public class MyShop {

private JFrame f1;
private JButton b1,b2,b3,b4,b5,b6;


public MyShop(){
    f1=new JFrame("Online Shop");
    f1.setLayout(new GridLayout(2,3));
    b1=new JButton();
    b2=new JButton();
    b3=new JButton();
    b4=new JButton();
    b5=new JButton();
    b6=new JButton();
    f1.add(b1);f1.add(b2);f1.add(b3);
    f1.add(b4);f1.add(b5);f1.add(b6);



    f1.setSize(800,600);
    f1.setVisible(true);
}
}
